package com.bittech.httpd.handler;

import com.bittech.httpd.common.HttpRequest;
import com.bittech.httpd.common.HttpResponse;
import com.bittech.httpd.common.SupportedMimeType;
import com.bittech.httpd.core.HandlerAdapter;

/**
 * Author: secondriver
 * Created: 2019/1/22
 * Description: 比特科技，只为更好的你；你只管学习，其它交给我。
 */
public class AboutHandler extends HandlerAdapter {
    
    @Override
    public void doGet(HttpRequest request, HttpResponse response) {
        response.setContentType(SupportedMimeType.HTML.getMimeType());
        response.write("<h2>名称：Java-httpd</h2>");
        response.write("<h2>描述：基于Java的Web服务器，支持静态和动态内容</h2>");
        response.write("<h2>作者：<a href='http://aiilive.blog.51cto.com'>secondriver</a></h2>");
        response.write("<h2>反馈：secondriver@yeah.net</h2>");
        response.write("<h2>版本：Java-httpd Version 1.0</h2>");
        response.flush();
    }
}
